package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryPaeam;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface StudentMapper extends BaseMapper<Student> {


    //List<Student> page(StudentQueryPaeam studentQueryPaeam);

//    void delete(@Param("ids") List<Integer> ids);
//
//    @Insert("insert into student(name, no, gender, phone, id_card, is_college, address, degree, graduation_date, clazz_id) VALUES" +
//            "(#{name},#{no},#{gender},#{phone},#{idCard},#{isCollege},#{address},#{degree},#{graduationDate},#{clazzId}) ")
//    void add(Student student);
//
//    @Select("select * from student where id = #{id}")
//    Student getById(Integer id);
//
//    void update(Student student);
//
    void score(Integer id, @Param("violationScore") Integer score);
}
